package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagGroupCodeDO;
import com.starlink.model.request.SchoolbagGroupCodeRequest;
import com.starlink.model.vo.SchoolbagGroupCodeVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagGroupCodeDtoMapper {

    SchoolbagGroupCodeDtoMapper INSTANCE = Mappers.getMapper(SchoolbagGroupCodeDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagGroupCodeDO
    * @return
    */
    SchoolbagGroupCodeVO do2VO(SchoolbagGroupCodeDO schoolbagGroupCodeDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagGroupCodeDO request2DO(SchoolbagGroupCodeRequest request);
}
